package ai.zixing.example01;

import ai.zixing.example01.builder.MobikeBuilder;
import ai.zixing.example01.director.Director;
import ai.zixing.example01.product.Bike;

/**
 * 客户端
 */
public class Client {

    public static void main(String[] args) {
        // 1.创建指挥者
        Director director = new Director(new MobikeBuilder());
        // 2.获取自行车
        Bike bike = director.construct();
        // 3.测试
        System.out.println(bike.getFrame() + ", " + bike.getSeat());
    }
}
